import request from "@/utils/request";
//查询所有
export function findAll() {
  return request({
    url: `/api/user/patient/auth/findAll`,
    method: "get",
  });
}
//添加
export function savePatient(patient) {
  return request({
    url: `/api/user/patient/auth/save`,
    method: "post",
    data: patient,
  });
}
//根据id查询
export function getPatient(id) {
  return request({
    url: `/api/user/patient/auth/get/${id}`,
    method: "get",
  });
}
//修改
export function updatePatient(patient) {
  return request({
    url: `/api/user/patient/auth/update`,
    method: "put",
    data: patient,
  });
}
//根据id删除
export function deleteById(id) {
  return request({
    url: `/api/user/patient/auth/delete/${id}`,
    method: "delete",
  });
}
